package com.brtbeacon.demo.lot.entity;

import android.text.TextUtils;

import java.util.LinkedList;
import java.util.List;

public class ParkingConstant {

    private static final List<String> ParkingPoiCategoryIds;

    public static boolean isParkingPoi(String categoryId) {
        if (TextUtils.isEmpty(categoryId))
            return false;

        for (String value: ParkingPoiCategoryIds) {
            if (value.equalsIgnoreCase(categoryId))
                return true;
        }

        return false;
    }

    static {
        ParkingPoiCategoryIds = new LinkedList<>();
        ParkingPoiCategoryIds.add("110601");
        ParkingPoiCategoryIds.add("110602");
        ParkingPoiCategoryIds.add("110603");
        ParkingPoiCategoryIds.add("110604");
    }
}
